<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <base href="${request.contextPath}/"/>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>农业卫星遥感应用平台</title>
    <link rel="shortcut icon" href="Content/remoteSense/images/logo.ico">
    <link rel="stylesheet" href="Content/remoteSense/css/style.css"/>
    <script src="Content/remoteSense/js/jquery.js"></script>
</head>
<body>
<div class="register_bg">
    <div class="top">
        <a href="#"><img src="Content/remoteSense/images/logo.png"/></a>
    </div>
    <div class="register">
        <div class="set-content">
            <div class="set-middle bd">
                <ul class="set-middle-item">
                    <li>
                        <h1>用户登录</h1>
                        <div class='hidden_box' style="display: none;color: #ff0000"></div>
                        <div class="input">
                            <span class="ico"><img src="Content/remoteSense/images/ico1.png"/></span>
                            <input class="i1" id="username" value="admin" type="text" placeholder="请输入用户名"/>
                        </div>
                        <div class="input">
                            <span class="ico"><img src="Content/remoteSense/images/ico2.png"/></span>
                            <input class="i2" id="password" value="111111" type="password" maxlength="12" placeholder="请输入密码"/>
                        </div>
                        <!--								<div class="yz">-->
                        <!--									<div class="input">-->
                        <!--										<span class="ico"><img src="Content/remoteSense/images/ico3.png" /></span>-->
                        <!--										<input class="yz2" type="text" placeholder="请输入验证码" />-->
                        <!--									</div>-->
                        <!--&lt;!&ndash;									<div id="check-code" style="overflow: hidden; float:right;">&ndash;&gt;-->
                        <!--&lt;!&ndash;										<div class="code" id="data_code" onselect="document.selection.empty()" onbeforecopy="return false"&ndash;&gt;-->
                        <!--&lt;!&ndash;										 onselectstart="return false"></div>&ndash;&gt;-->
                        <!--&lt;!&ndash;									</div>&ndash;&gt;-->
                        <!--								</div>-->
                        <label class="rmb">
                            <input class="checkbox" type="checkbox" id="remember">
                            <span>记住用户名和密码</span>
                        </label>
                        <button id="loginbtn" class="submit">登录</button>
                    </li>
                </ul>
            </div>
        </div>
        <!--				<script src="Content/remoteSense/js/yz.js"></script>-->
    </div>
</div>
<p class="copr">
    &copy; 紫光云技术有限公司 2020 版权所有
</p>
</body>
<script>
    $('#loginbtn').click(function () {
        var username = $.trim($("#username").val());
        var password = $.trim($("#password").val());
        var rememberMe = $.trim($('input:checkbox:checked').val());
        if(username==null||username==''){
            $(".hidden_box").html("<i>账号不能为空！</i>");
            $(".hidden_box").show();
            return false;
        }else{
            $(".hidden_box").hide();
        }
        if(password==null||password==''){
            $(".hidden_box").html("<i>密码不能为空！</i>");
            $(".hidden_box").show();
            return false;
        }else{
            $(".hidden_box").hide();

        }
        if(username!='admin'){
            $(".hidden_box").html("<i>用户名错误！</i>");
            $(".hidden_box").show();
            return false;
        }else{
            $(".hidden_box").hide();
        }
        if(password!='111111'){
            $(".hidden_box").html("<i>密码错误！</i>");
            $(".hidden_box").show();
            return false;
        }else{
            $(".hidden_box").hide();
        }
        location.href='http://chaoyang.gagogroup.cn/system/overall-resource';


    });

    document.onkeydown = function (event) {
        var e = event || window.event;
        if (e && e.keyCode == 13) { //回车键的键值为13
            $('#loginbtn').click();
        }
    };
    (function(window) {
        if (window.location !== window.top.location) {
            window.top.location = window.location;
        }
    })(this);

</script>
</html>
